#include "ConditionValue.h"

ConditionValue_ConditionType_ptr ConditionValue_ConditionType::SQLSTATE = ConditionValue_ConditionType_ptr(new ConditionValue_ConditionType(1ULL << 0, make_string_ptr("SQLSTATE")));
ConditionValue_ConditionType_ptr ConditionValue_ConditionType::SELF = ConditionValue_ConditionType_ptr(new ConditionValue_ConditionType(1ULL << 1, make_string_ptr("SELF")));
ConditionValue_ConditionType_ptr ConditionValue_ConditionType::SYSTEM = ConditionValue_ConditionType_ptr(new ConditionValue_ConditionType(1ULL << 2, make_string_ptr("SYSTEM")));
ConditionValue_ConditionType_ptr ConditionValue_ConditionType::MYSQL_ERROR_CODE = ConditionValue_ConditionType_ptr(new ConditionValue_ConditionType(1ULL << 3, make_string_ptr("MYSQL_ERROR_CODE")));

ConditionValue_ConditionType::ConditionValue_ConditionType(uint64_t mask, string_ptr name)
{
  this->mask = mask;
  this->name = name;
}

ConditionValue_ConditionType_ptr ConditionValue::getType()
{
  return type;
}

void ConditionValue::setType(ConditionValue_ConditionType_ptr type)
{
  this->type = type;
}

string_ptr ConditionValue::getValue()
{
  return value;
}

void ConditionValue::setValue(string_ptr value)
{
  this->value = value;
}
